import { IsNumber, IsString } from 'class-validator';
import { PageDto } from 'src/dto/common.dto';
import { ApiProperty } from '@nestjs/swagger';

export class ConfigClassifyDto {
  @ApiProperty({ description: '分类Id' })
  id?: number;
  @IsString({ message: 'classify_name应为string' })
  @ApiProperty({ description: '分类' })
  classify_name: string;
}

export class GetCalssifyDto extends PageDto {}
